package com.fqgj.sentry.manage.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.sentry.manage.dao.McPermissionDao;
import com.fqgj.sentry.manage.entity.McPermissionEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * User: ykpbean
 * Date: 2017-07-12
 * Time: 14:21:02.931
 */

@Repository
public class McPermissionDaoImpl extends AbstractBaseMapper<McPermissionEntity> implements McPermissionDao {

    @Override
    public List<McPermissionEntity> findListByMenuId(Long menuId) {
        return this.getSqlSession().selectList(this.getStatement(".findListByMenuId"), menuId);
    }

    @Override
    public List<McPermissionEntity> selectList() {
        return this.getSqlSession().selectList(this.getStatement(".selectList"));
    }

}